



<html>
    <head>
        <title>Đăng nhập</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <script src="../scripts/jquery-1.5.1.js" type="text/javascript"></script>
        <script src="../scripts/jquery.validate.js" type="text/javascript"></script>
        <script src="../scripts/jquery.validate.min.js" type="text/javascript"></script>
        <link href="../styles/admin.css" rel="stylesheet" type="text/css"/>
<script>
// only for demo purposes
$.validator.setDefaults({
	submitHandler: function(form) {
           form.submit();
	}
});

$(document).ready(function() {
	// validate the form when it is submitted
	var validator = $("#login").validate({
	
		errorElement: "span",
		messages: {
			username: {
				required: " *Yêu cầu nhập",
				minlength: " *Nhập ít nhất 8 kí tự"
			},
			password: {
				required: " *Yêu cầu nhập",
				minlength: " *Yêu cầu nhập",
				maxlength: "  *Yêu cầu nhập "
			}
		}
	});

	$(".cancel").click(function() {
		validator.resetForm();
	});
});
</script>
        
    </head>
    <body>
        <form action="home.php" method="post" id="login">
            <fieldset>
                <legend><text>Đăng nhập</text></legend>
                <p>
                    <label>Tên đăng nhập</label>
                    <input type="text" id="username" value="" name="username" required minlength="8"/>                    
                </p>
                <p>
                    <label>Mật khẩu</label>
                    <input type="password" id="password" value="" name="password" maxlength="12" name="password" required minlength="8"/>                    
                </p>
                <div class="button">
                    
                    <input type="submit" id="subbmit" value="Đăng nhập"/>  
               <!--     <input type="submit" id="cancel" value="Hủy"/>   -->
                </div>
            </fieldset>
            
        </form>
      <?php echo date(DATE_ATOM); ?>
    </body>
</html>
